﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.IT
{
    /// <summary>
    /// 库存结存
    /// </summary>
    [Table("IT_MaterialBalance")]
    public partial class IT_MaterialBalance
    {

        /// <summary>
        /// Id
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 年
        /// </summary>
        public String Year { get; set; }

        /// <summary>
        /// 月
        /// </summary>
        public String Month { get; set; }

        /// <summary>
        /// 年月
        /// </summary>
        public String YearMonth { get; set; }

        /// <summary>
        /// 仓库Id
        /// </summary>
        public String StorId { get; set; }

        /// <summary>
        /// 物料Id
        /// </summary>
        public String MaterialId { get; set; }

        /// <summary>
        /// 期初数量(上月结存数量)
        /// </summary>
        public Double? LastMonth { get; set; }

        /// <summary>
        /// 本月入库数量
        /// </summary>
        public Double? InNums { get; set; }

        /// <summary>
        /// 本月出库数量
        /// </summary>
        public Double? OutNums { get; set; }

        /// <summary>
        /// 本月结存数量
        /// </summary>
        public Double? ThisNums { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public String Remarks { get; set; }

        /// <summary>
        /// 创建人Id
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 创建人姓名
        /// </summary>
        public String CreatorRealName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 删除状态：0=未删除；1＝已删除；
        /// </summary>
        public Boolean? Deleted { get; set; }

    }
}